#coding=utf8

from base import TBase

class User(TBase):
    typename = 'user'
    fields = 'user_id,uid,nick,sex,buyer_credit,seller_credit,location,created,last_visit,birthday,type,has_more_pic,item_img_num,item_img_size,prop_img_num,prop_img_size,auto_repost,promoted_type,status,alipay_bind,consumer_protection,alipay_account,alipay_no,avatar,liangpin,sign_food_seller_promise,has_shop,is_lightning_consignment,vip_info,email,magazine_subscribe,vertical_market,online_gaming'
    def get(self, sessionkey, nick, fields=''):
        self.session = sessionkey
        self.method = 'user.get'
        if fields:
            self.fields=fields
        return self.do()

if __name__ == '__main__':
    import pprint
    a = User()
    pprint.pprint( a.get('6100b16676d650aae0d0c9e81145ebef56c4b2be4bb5aae741880263', '威拉帝莎旗舰店') )
    print a.get('6102913ac40371450afba119d38da5e95027010711720ef409817434', 'liang_g6686')


